package com.onesports.intelligent.k12.polarlight.domain.vo.order;

import cn.gjing.excel.base.annotation.ExcelDataConvert;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.gjing.excel.base.annotation.Excel;
import cn.gjing.excel.base.annotation.ExcelField;
import com.onesports.intelligent.k12.polarlight.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 服务评价VO
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "机构端-服务评价")
@Excel("服务评价")
public class OrgOrderEvaluatePageVO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "校区名称")
    @ExcelField(value = "校区名称")
    private String campusName;

    @ApiModelProperty(value = "教练名称")
    @ExcelField(value = "教练名称")
    private String staffName;

    @ApiModelProperty(value = "评价等级")
    @ExcelField(value = "评价等级")
    private Integer evaluationLevel;

    @ApiModelProperty(value = "订单编号")
    @ExcelField(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "订单id")
    private String id;

    @ApiModelProperty(value = "商品名称")
    @ExcelField(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "课程名称")
    @ExcelField(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "应付金额(元)")
    @ExcelField(value = "应付金额（元）", format = "0.00")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "优惠金额（元）")
    @ExcelField(value = "优惠金额（元）", format = "0.00")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "实付金额(元)")
    @ExcelField(value = "实付金额（元）", format = "0.00")
    private BigDecimal actuallyAmount;

    @ApiModelProperty(value = "团长分佣（元）")
    @ExcelField(value = "团长分佣（元）", format = "0.00")
    private BigDecimal headSubLedger;

    @ApiModelProperty(value = "教练分账（元）")
    @ExcelField(value = "教练分账（元）", format = "0.00")
    private BigDecimal coachSubLedger;

    @ApiModelProperty(value = "会员昵称")
    @ExcelField(value = "会员昵称")
    private String account;

    @ApiModelProperty(value = "学员名称")
    @ExcelField(value = "学员名称")
    private String studentName;

    @ApiModelProperty(value = "手机号码")
    @ExcelField(value = "手机号码")
    private String contactPhone;

    @ApiModelProperty(value = "订单状态")
    @ExcelField(value = "订单状态")
    @ExcelDataConvert(writeExpr="#orderStatus?.label")
    private OrderStatusEnum orderStatus;

    @ApiModelProperty(value = "评价时间")
    @ExcelField(value = "评价时间",format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date evaluationTime;
}
